<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class UserFav extends Model
{
    public static function getFavCount($user_id)
    {
        $where = [
            ['user_id', '=', $user_id],
        ];
        return UserFav::where($where)->count();
    }
}